/*
 * @Author: 薛严 348352046@qq.com
 * @Date: 2022-11-01 22:26:01
 * @LastEditors: 薛严 348352046@qq.com
 * @LastEditTime: 2022-11-18 18:10:14
 * @FilePath: /vite-react-template/src/main.tsx
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import React from 'react'
import ReactDOM from 'react-dom/client'
// 初始化
import 'rest-css'
// UI框架

// 全局样式
import '@/assets/styles/global.scss'

import App from './App'
// 组件样式
// import  Router  from './router/index-old'

// 路由
import { HashRouter } from 'react-router-dom'

// 状态管理
import { Provider } from 'react-redux'
import store from '@/store/store'

ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
  <React.StrictMode>
    <Provider store={store}>
      <HashRouter>
        <App />
      </HashRouter>
    </Provider>
  </React.StrictMode>
)
